﻿package com.gm.tools;

import java.io.IOException;

import org.apache.commons.httpclient.HttpException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;


public class SFZ_Parse {
	Document doc ;
	public SFZ_Parse(String html){
		this.doc = Jsoup.parse(html);
	}

	public String[] parseSFZ() throws HttpException, IOException {
			Elements result = doc.select(".tb-result");
			Elements tds = result.select("td");
			String[] tddata = new String[tds.size()];
			System.out.println(tds.size());
			for (int i = 0; i < tds.size(); i++) {
				tddata[i] = tds.get(i).text();
//				System.out.println(td[i]);
			}
		return tddata;
	}
}
